package com.dhcc.sds.standard.dao;

import java.util.List;
import java.util.Map;

import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.standard.dto.TreeNode;
import org.apache.ibatis.annotations.Param;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.sds.standard.entity.SdsStandDicEntity;

/**
 * 项目标准化字典
 * 
 * @ClassName: SdsStandDicMapper
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:09:57
 */
public interface SdsStandDicMapper  extends BaseMapper<SdsStandDicEntity> {
	
    List<SdsStandDicEntity> list(@Param("map")Map<String, Object> map);
    List<SdsStandDicEntity> page(@Param("page") Page<SdsStandDicEntity> page,@Param("map")Map<String, Object> map);

    List<ZTreeNode> tree();

    SdsStandDicEntity selectBySourceAndDicDesc(@Param("sourceId") Long sourceId, @Param("dicDesc") String dicDesc);

    List<TreeNode> selectLevel();

    List<TreeNode> selectSecondary(@Param("parentId") Long parentId);

    List<TreeNode> selectByDataSourceId(@Param("dataSourceId") Long dataSourceId);

    List<SdsStandDicEntity> selectDicByDataSourceId(@Param("dataSourceId") Long dataSourceId);

    List<SdsStandDicEntity> selectDicRoot();

    List<ZTreeNode> tree2();
}
